{include file="header.tpl" title="Siste hendelser" logged_in=$logged_in map_type="view" CONFIG=$CONFIG}
{include file="incident_header.tpl"}

<div style="float : left; padding : 1em; margin-right : 1em;">
	{include file="_incident_left_menu.tpl" current=$view}
</div>


{if $incident_added}
    {include file="message.tpl" type="success" style="margin-left : 16em;"
        message="Hendelsen har blitt lagt til"}
{/if}
{if $view eq 'area'}
    {include file="_filter_bar.tpl"
        browsing = "område"
        name = "area"
        view = $view
        option_list = $area_list
        filter = $area_filter
        extra_option_value = $area_unspecified
        extra_option_title = "(Uspesifisert)"
    }
{/if}

{if $view eq 'offense'}
    {include file="_filter_bar.tpl"
        browsing = "synd"
        name = "offense"
        view = $view
        option_list = $offense_list
        filter = $offense_filter
    }
{/if}

{if $view eq 'user'}
    {include file="_filter_bar.tpl"
        browsing = "bidragsyter"
        name = "user"
        view = $view
        option_list = $user_list
        filter = $user_filter
        have_empty_option = true
    }
{/if}

     
{include file="_incident_list.tpl" 
    incidents=$incidents incidents_total=$incidents_total
    next_page=$next_page prev_page = $prev_page}
<div id="map" style="width : 40%; height: 400px; float: left; margin-left : 2em; margin-top : 2em;"></div>

{include file="footer.tpl"}
